<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>


<script>
import { mapMutations } from 'vuex';
  export default {
    methods:{
      ...mapMutations(['initcurrent'])
    },
    mounted(){
    let current = localStorage.getItem('current')
    if(current){
      this.initcurrent(JSON.parse(current))
    }
  },
  }
</script>
<style lang="scss">
*{
  margin: 0;
  padding: 0;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

html,body,#app{
  width: 100%;height: 100%;
}


</style>
